whole = 4936
url_list = []
with open("url.txt", "r", encoding="utf-8") as source:
    for i in range(whole):
        url_list.append(list(source.readline().split()))
        now = int(i / whole * 100) + 1
        print("\r[%-100s][%2d%s]" % ("■" * now, now, '%'), end="")
print()
while True:
    try:
        pos = int(input("请输入位置:"))
        print("#查询信息如下:\n|url:[%s]\n|关键字1:[%s]\n|关键字2:[%s]" %
              ((url_list[pos - 1])[0], (url_list[pos - 1])[1], (url_list[pos - 1])[2]))
    except TypeError:
        print("数据类型异常")
